<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="theme/Header.jsp" %>
<script type="text/javascript" >
    $().ready(function() {
        $('#province').val('${province}');
        $('#carType').val('${carType}');
        $('#save').click(function(){
            $('#form_adj001').submit();
        });
        $('#back').click(function(){
            history.go(-1);
            return false
        });

    });

</script>
<div id="site-root">
    <div>
        <a href="GOV001">[GOV001- ข้อมูลรถจากขนส่ง]</a>[แก้ไขข้อมูล]
    </div>
</div>
<div id="button-bar">
    <fieldset>
        <div class="buttons">
            <button class="positive" id="back">
                <img  src="theme/images/icons/arrow_back.gif" alt="" width="16" height="16"/>ย้อนกลับ
            </button>
            <button class="positive" id="add" >
                <img  src="theme/images/icons/save.gif" alt="" width="16" height="16"  />บันทึกข้อมูล
            </button>
        </div>
    </fieldset>
</div>
<div id="source-data">
    <fieldset style="background: #F2F2F2">
        <legend>รายละเอียดการแก้ไข</legend>
        <form action="GOV001_EDIT" id="frm_gov001" method="post" class="cmxform">
            <table>
                <tr>
                    <td>หมายเลขทะเบียน :</td>
                    <td><input type="text" value="${plate}" class="lock" readonly /></td>
                    <td>จังหวัด : </td>
                    <td>
                        <select id="province" name="province" class="lock" disabled>
                            <c:forEach items="${provinceList}" var="p" varStatus="i">
                                <option value="${p.provinceName}">${p.provinceName}</option>
                            </c:forEach>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>ประเภทรถ :</td>
                    <td>
                        <select id="carType" name="carType" class="require">
                            <option value="01">01</option>
                            <option value="02">02</option>
                            <option value="03">03</option>
                        </select>
                    </td>
                    <td>ยี่ห้อรถ :</td>
                    <td>
                        <select id="brand" name="brand" class="require">
                            <c:forEach items="${brandList}" var="b" varStatus="i">
                                <option value="${b.brandName}">${b.bName}</option>
                            </c:forEach>
                        </select>
                    </td>
                </tr>
            </table>
        </form>
    </fieldset>
</div>
<%@include file="theme/Footer.jsp" %>